﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="True" CodeBehind="ManageSurveys.aspx.cs" Inherits="BSCMFF.Web.Pages.Surveys.Personalist.ManageSurveys" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <telerik:RadGrid ID="RadGridSurveys" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False"  CellSpacing="0" 
        DataSourceID="EntityDataSourceSurveys" GridLines="None" 
        onitemcommand="RadGridSurveys_ItemCommand" 
        meta:resourcekey="RadGridSurveysResource1" 
        onitemdatabound="RadGridSurveys_ItemDataBound">
<MasterTableView DataKeyNames="ID" DataSourceID="EntityDataSourceSurveys" CommandItemDisplay="Top">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" Visible="false"
            FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" 
            SortExpression="ID" UniqueName="ID" 
            meta:resourcekey="GridBoundColumnResource1">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Name" 
            FilterControlAltText="Filter Name column" HeaderText="Name" 
            SortExpression="Name" UniqueName="Name" 
            meta:resourcekey="GridBoundColumnResource2">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Description" 
            FilterControlAltText="Filter Description column" HeaderText="Description" 
            SortExpression="Description" UniqueName="Description" 
            meta:resourcekey="GridBoundColumnResource3">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CreationDate" 
            FilterControlAltText="Filter CreationDate column" 
            HeaderText="CreationDate" DataFormatString="{0:d}"
            SortExpression="CreationDate" UniqueName="CreationDate" 
            DataType="System.DateTime" meta:resourcekey="GridBoundColumnResource4">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="NumberOfEmployees" DataType="System.Int32" 
            FilterControlAltText="Filter NumberOfEmployees column" HeaderText="Number Of Respondents" 
            SortExpression="NumberOfEmployees" UniqueName="NumberOfEmployees" 
            meta:resourcekey="GridBoundColumnResource5">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="FilledRespondents" DataType="System.Int32" 
            FilterControlAltText="Filter FilledRespondents column" HeaderText="Number Of Filled" 
            SortExpression="FilledRespondents" UniqueName="FilledRespondents" 
            meta:resourcekey="GridBoundColumnResource6">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="Started" DataType="System.Boolean" 
            FilterControlAltText="Filter Started column" HeaderText="Started" 
            SortExpression="Started" UniqueName="Started" 
            meta:resourcekey="GridCheckBoxColumnResource1">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="Finished" DataType="System.Boolean" 
            FilterControlAltText="Filter Finished column" HeaderText="Finished" 
            SortExpression="Finished" UniqueName="Finished" 
            meta:resourcekey="GridCheckBoxColumnResource2">
        </telerik:GridCheckBoxColumn>
        <telerik:GridButtonColumn CommandName="Start" Text="Start" UniqueName="StartCommand"
            meta:resourcekey="GridButtonColumnResource1" >
        </telerik:GridButtonColumn>
        <telerik:GridButtonColumn CommandName="Finish" Text="Finish" UniqueName="FinishCommand"
            meta:resourcekey="GridButtonColumnResource2" >
        </telerik:GridButtonColumn>
        <telerik:GridButtonColumn CommandName="Preview" Text="Preview" 
            meta:resourcekey="GridButtonColumnResource3" >
        </telerik:GridButtonColumn>
        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" 
            meta:resourcekey="GridButtonColumnResource4" >
        </telerik:GridButtonColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False"></FilterMenu>

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>

    <asp:EntityDataSource ID="EntityDataSourceSurveys" runat="server" 
        ConnectionString="name=BSCEntities" DefaultContainerName="BSCEntities" 
        EnableDelete="True" EnableFlattening="False" EnableInsert="True" 
        EnableUpdate="True" EntitySetName="Survey_Form" EntityTypeFilter="" 
        Select="">
    </asp:EntityDataSource>

</asp:Content>
